const express = require('express');
const router = express.Router();
const { jwtCheck } = require('../../util/jwt');
const NavInfo = require('../../logicFun/system/nav')

// 添加角色
router.post('/addNav', jwtCheck, NavInfo.addNav)

// 编辑角色
router.post('/editNav', jwtCheck, NavInfo.editNav)

// 删除角色
router.delete('/deleteNav/:id', jwtCheck, NavInfo.deleteNav)

// 查询角色列表
router.get('/queryNavList', jwtCheck, NavInfo.queryNavList)

// 查询角色详情
router.post('/navDetail', jwtCheck, NavInfo.navDetail)

module.exports = router;
